import conf from '../../config';
import Http from '../http';

const baseUrl = conf.interface.baseUrl;

export const captchaImage = async (params) => {
  const url = `${baseUrl}/captchaImage`;
  const res = await Http.get(url, params);
  return res.data || {};
};
export const login = async (params, contentType) => {
  const url = `${baseUrl}/login`;
  const res = await Http.post(url, params, contentType);
  return res.data || {};
};
export const userList = async (params) => {
  const url = `${baseUrl}/system/user/list`;
  const res = await Http.get(url, params);
  return res.data || {};
};